import request from '@/utils/request'

// 列表1
export function listPost(query) {
  return request({
    url: '/work/TbWorkOrder/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPost(query) {
  return request({
    url: '/work/TbWorkOrder/getById',
      method: 'get',
    params: query
  })
}

// 新增
export function addPost(data) {
  return request({
    url: '/work/TbWorkOrder/save',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePost(data) {
  return request({
    url: '/work/TbWorkOrder/save',
    method: 'put',
    data: data
  })
}

// 删除
export function delPost(query) {
  return request({
    url: '/work/TbWorkOrder/delIds',
      method: 'post',
     params: query
  })
}
